package com.google.gson;

import com.google.gson.internal.a;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;

public final class m extends j {
    private final Map a = new LinkedHashMap();

    private j a(Object obj) {
        return obj == null ? l.a : new p(obj);
    }

    public void a(String str, j jVar) {
        Object obj;
        if (jVar == null) {
            obj = l.a;
        }
        this.a.put(a.a((Object) str), obj);
    }

    public void a(String str, String str2) {
        a(str, a((Object) str2));
    }

    public boolean a(String str) {
        return this.a.containsKey(str);
    }

    public j b(String str) {
        if (!this.a.containsKey(str)) {
            return null;
        }
        j jVar = (j) this.a.get(str);
        return jVar == null ? l.a : jVar;
    }

    public boolean equals(Object obj) {
        return obj == this || ((obj instanceof m) && ((m) obj).a.equals(this.a));
    }

    public int hashCode() {
        return this.a.hashCode();
    }

    public Set o() {
        return this.a.entrySet();
    }
}
